package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;



public class JFSalir extends javax.swing.JFrame {
	private JPanel pnlSalir;
	private JLabel lblSalir;
	private JButton btnAceptar;


	
	public JFSalir() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				pnlSalir = new JPanel();
				getContentPane().add(pnlSalir, BorderLayout.CENTER);
				pnlSalir.setLayout(null);
				pnlSalir.setPreferredSize(new java.awt.Dimension(358, 121));
				{
					lblSalir = new JLabel();
					pnlSalir.add(lblSalir);
					lblSalir.setText("Perdio la partida !!!");
					lblSalir.setBounds(72, 31, 219, 30);
					lblSalir.setFont(new java.awt.Font("Purisa",0,16));
				}
				{
					btnAceptar = new JButton();
					pnlSalir.add(btnAceptar);
					btnAceptar.setText("Aceptar");
					btnAceptar.setBounds(111, 78, 99, 34);
				}
			}
			pack();
			this.setSize(340, 169);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	

	public void addListener(ActionListener actionListener){
		
		btnAceptar.addActionListener(actionListener);
	}
}
